package entity

type Battery struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	BatteryCode string `gorm:"column:battery_code;type:VARCHAR(255)" json:"battery_code"`

	FirmwaresVersion string `gorm:"column:firmwares_version;type:VARCHAR(255)" json:"firmwares_version"`

	BatteryType int64 `gorm:"column:battery_type;type:BIGINT" json:"battery_type"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *Battery) TableName() string {
	return "batterys"
}
